
export const dispatchEvent = (eventName: string, detail: Record<string, any> = {}) => {
  const event = new CustomEvent(eventName, {
    detail
  })
  
  window.dispatchEvent(event);
}


